package cn.skyquant.quant4j.sdk.util.digest;

public final class Password {
    public static final String gen(String username,String password){
        if(username==null || password==null || username.length()<=3){
            return null;
        }
        String username_pre = username.substring(0,3);
        String username_suffix = username.substring(3,username.length());
        return MD5.encrypt(username_pre+password+username_suffix);
    }
}
